<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output
	encoding="UTF-8"
	method="text"
/>

<xsl:template match="/page">
	<xsl:text>{</xsl:text>
	<xsl:for-each select="content/main-view/message">msg<xsl:value-of select="position()"/>: "<xsl:value-of select="title"/>"<xsl:if test="position() != last()">,</xsl:if>
	</xsl:for-each>}</xsl:template>

</xsl:stylesheet>
